import Vue from 'vue'
import App from './App'

//引入uView
import uView from "uview-ui";
Vue.use(uView);
//微信分享
import share from './mixins/share.js'
Vue.mixin(share)

// 全局组件
import empty from './components/empty.vue'
Vue.component('empty', empty)
import navbar from './components/navbar.vue'
Vue.component('navbar', navbar)
import goodItem from './components/goodItem.vue'
Vue.component('goodItem', goodItem)
import youLike from './components/youLike.vue'
Vue.component('youLike', youLike)
import filterList from './components/filterList.vue'
Vue.component('filterList', filterList)
import homeTop from './components/homeTop.vue'
Vue.component('homeTop', homeTop)
import storeItem from './components/storeItem.vue'
Vue.component('storeItem', storeItem)
import comItem from './components/comItem.vue'
Vue.component('comItem', comItem)
import historyItem from './components/historyItem.vue'
Vue.component('historyItem', historyItem)
import collectItem from './components/collectItem.vue'
Vue.component('collectItem', collectItem)

import $bluetooth from './tool'
Vue.prototype.$bluetooth = $bluetooth

// 高德地图
import amapFile from './libs/amap-wx.js'
let key = 'bb6f4ed802756f963b37c184ce4e9766'
Vue.prototype.$map = new amapFile.AMapWX({
	key: key
});

//引入vuex
import {
	store
} from './store/index'
// Vue.prototype.$store=store

// 全局引入http
import {
	http
} from './common/http.js'
Vue.prototype.$http = http;

// //过滤器配置
import './common/filter.js';
// <div class="time">{{item.createtime |timeFilter(第二个参数,第三个参数)}} 至 {{item.endtime |timeFilter}}</div>


Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App,
	store,
})
app.$mount()
